import 'package:bike_ride/generated/l10n.dart';
import 'package:flutter/material.dart';

class Globals {
  ///站点边界线条颜色
  static final Map<int, Color> stationStrokeColorMap = {
    0: const Color(0xff01A763),
    1: const Color(0xffEA8B8B),
    2: Colors.redAccent,
    3: Colors.redAccent
  };

  /// 站点填充颜色
  static final Map<int, Color> stationFillColorMap = {
    0: const Color(0xff01A763).withOpacity(0.2),
    1: const Color(0xffEA8B8B).withOpacity(0.4),
    2: Colors.redAccent.withOpacity(0.3),
    3: Colors.redAccent.withOpacity(0.3),
    5: Colors.yellow.withOpacity(0.3),
  };


  static final Map<int, String> incomeTypeMap = {
    1: S.current.defaultIncome,
    2: S.current.defaultPayout,
    3: S.current.rechargeIncome,
    4: S.current.rideDeduction,
    5: S.current.rechargeDepositPayout,
    6: S.current.manualRecharge,
    7: S.current.buyCardPayout,
    8: S.current.prepayFreezePayout,
    9: S.current.refund,
    10: S.current.prepayPayout,
    11: S.current.prepayBalanceRefundIncome,
    12: S.current.depositRefund,
    13: S.current.giftPrice,
  };

  static final Map<int, String> payoutTypeMap = {
    1: S.current.alipay,
    2: S.current.wechat,
    3: S.current.wechatPoint,
    4: S.current.alipayPreAuth,
    5: S.current.balance,
    6: S.current.mix,
    7: S.current.CMB,
    8: S.current.wechatDispose,
    11: S.current.online,
  };
}
